import request from '@/utils/request'
import moduleUrl from '@/utils/moduleUrl'


/** 列表查询 */
export function listUpmsPermission(data) {

  return request({
    url: moduleUrl.upms + '/upms/permission/listPage',
    method: 'post',
    data
  })
}

/** 创建 */
export function addUpmsPermission(data) {
  return request({
    url: moduleUrl.upms + '/upms/permission/add',
    method: 'POST',
    data
  })
}

/** 编辑 */
export function editUpmsPermission(data) {
  return request({
    url: moduleUrl.upms + '/upms/permission/edit',
    method: 'POST',
    data
  })
}

/** 删除 */
  export function delUpmsPermission(data) {
  return request({
    url: moduleUrl.upms + '/upms/permission/del',
    method: 'post',
    data
  })
}


export function treePermission(data) {

  return request({
    url: moduleUrl.upms + '/upms/permission/tree',
    method: 'post',
    data
  })
}

/** 列表查询 */
export function getUpmsPermission(data) {

  return request({
    url: moduleUrl.upms + '/upms/permission/get',
    method: 'post',
    data
  })
}
